<?php

/**
 * team actions.
 *
 * @package    cpfaizenay
 * @subpackage page
 * @author     Manu
 * @version    1.0
 */
class teamActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request) {
      $this->teams_list = Doctrine::getTable('Team')->getTeams()->fetchArray();
      $this->forward404Unless($this->teams_list);

      $this->announcement = Doctrine::getTable('Announcement')->getAnnouncement('team')->fetchOne();

      isicsBreadcrumbs::getInstance()->addItem('Equipes de CPF Aizenay', '#');

      $response = $this->getResponse();
      Utils::setSlogTitle('Equipes de CPF Aizenay', $response);
  }
}